package com.example.lowbird.lowbird.activity;

import android.content.Context;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;

import com.example.lowbird.lowbird.R;
import com.example.lowbird.lowbird.app.Myapp;



public class Baseactivity extends AppCompatActivity {

    private Context mContext;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_baseactivity);
    }


    public void startActivity(Intent intent, Boolean flag) {

        if (flag){

            Myapp.getmInsance().setIntent(intent);

            startActivity(new Intent(mContext,RegistActivity.class));


        }else {
            startActivity(intent);

        }

    }
}
